package com.asset.dispoal.batchEvidenceTypeMapper.service;

import com.asset.dispoal.batchEvidenceTypeMapper.api.SysBatchEvidenceTypeMapperService;
import com.asset.dispoal.batchEvidenceTypeMapper.dto.SysBatchEvidenceTypeMapperRequest;
import com.asset.dispoal.batchEvidenceTypeMapper.dto.SysBatchEvidenceTypeMapperResponse;
import com.asset.dispoal.batchEvidenceTypeMapper.service.commom.SysBatchEvidenceTypeMapperDelCommand;
import com.asset.dispoal.batchEvidenceTypeMapper.service.commom.SysBatchEvidenceTypeMapperInsertCommand;
import com.asset.dispoal.batchEvidenceTypeMapper.service.commom.SysBatchEvidenceTypeMapperQueryPageCommand;
import com.asset.dispoal.batchEvidenceTypeMapper.service.commom.SysBatchEvidenceTypeMapperUpdateCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.mhuang.pacebox.springboot.protocol.Result;
import tech.mhuang.pacebox.springboot.protocol.data.PageVO;

/**
 * 批次证据种类映射表服务实现类
 *
 * @author: mhuang
 * @date: 2022-03-23 17:10:57
 */
@Service
public class SysBatchEvidenceTypeMapperServiceImpl implements SysBatchEvidenceTypeMapperService {

    @Autowired
    SysBatchEvidenceTypeMapperDelCommand sysBatchEvidenceTypeMapperDelCommand;

    @Autowired
    SysBatchEvidenceTypeMapperUpdateCommand sysBatchEvidenceTypeMapperUpdateCommand;

    @Autowired
    SysBatchEvidenceTypeMapperQueryPageCommand sysBatchEvidenceTypeMapperQueryPageCommand;

    @Autowired
    SysBatchEvidenceTypeMapperInsertCommand sysBatchEvidenceTypeMapperInsertCommand;


    @Override
    public Result insert(SysBatchEvidenceTypeMapperRequest request) {
        return sysBatchEvidenceTypeMapperInsertCommand.execute(request);
    }

    @Override
    public Result update(SysBatchEvidenceTypeMapperRequest request) {
        return sysBatchEvidenceTypeMapperUpdateCommand.execute(request);
    }

    @Override
    public Result delete(String id) {
        return sysBatchEvidenceTypeMapperDelCommand.execute(id);

    }

    @Override
    public Result<PageVO<SysBatchEvidenceTypeMapperResponse>> queryPage(SysBatchEvidenceTypeMapperRequest request) {
        return sysBatchEvidenceTypeMapperQueryPageCommand.execute(request);
    }
}